Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add NRF Consumer support OAuth2 #18

Merged
merged 7 commits into from
Dec 19, 2023

Conversation

andy89923
Copy link
Contributor

@andy89923 andy89923 commented Nov 16, 2023

Description

This pull request enables AUSF to use NRF services through the OAuth2 service authorization.

Note

Config must add nrfCertPem

configuration:
  nrfCertPem: cert/nrf.pem # NRF Certificate

@andy89923 andy89923 mentioned this pull request Dec 7, 2023
@@ -34,16 +34,17 @@ func BuildNFInstance(ausfContext *ausf_context.AUSFContext) (profile models.NfPr
}

// func SendRegisterNFInstance(nrfUri, nfInstanceId string, profile models.NfProfile) (resouceNrfUri string,
// retrieveNfInstanceID string, err error) {
//
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add this line?

@@ -135,7 +135,8 @@ func EapEncodeAttribute(attributeType string, data string) (string, error) {
}

// func eapAkaPrimePrf(ikPrime string, ckPrime string, identity string) (K_encr string, K_aut string, K_re string,
// MSK string, EMSK string) {
//
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add this line?

@@ -82,7 +82,8 @@ func HandleUeAuthPostRequest(request *httpwrapper.Request) *httpwrapper.Response
}

// func UeAuthPostRequestProcedure(updateAuthenticationInfo models.AuthenticationInfo) (
// response *models.UeAuthenticationCtx, locationURI string, problemDetails *models.ProblemDetails) {
//
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add this line?

@tim-ywliu tim-ywliu merged commit ab54adb into free5gc:main Dec 19, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants